package br.com.sigeu.util;

import br.com.sigeu.cliente.ClienteDAO;
import br.com.sigeu.cliente.ClienteDAOHibernate;
import br.com.sigeu.loginuser.LoginUserDAO;
import br.com.sigeu.loginuser.LoginUserDAOHibernate;

public class DAOFactory {
	public static class LoginUserDAOFactory {
	public static LoginUserDAO criaLoginUserDAO() {
		LoginUserDAOHibernate loginuserDAOHibernate = new LoginUserDAOHibernate();
		loginuserDAOHibernate.setSessao(HibernateUtil.getSession()
				.getCurrentSession());
		return loginuserDAOHibernate;
	}
	}
	public static class ClienteDAOFactory {

		public static ClienteDAO criaClienteDAO() {
			ClienteDAOHibernate clienteDAOHibernate = new ClienteDAOHibernate();
			clienteDAOHibernate.setSessao(HibernateUtil.getSession()
					.getCurrentSession());
			return clienteDAOHibernate;
		}
	}
}
